delete all rows in table laravel

49

delete all rows from table laravel -

MyModel::truncate();

delete all rows in table laravel -

// Uncomment the below to wipe the table clean before populating

DB::table('table_name')->truncate();

//or

DB::table('table_name')->delete();

Comments

Submit
0 Comments